package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;

/**
 * 审核账单枚举
 *
 * @author liGen
 * @version 1.0
 * @date 2024/1/23 10:22 上午
 */
@AllArgsConstructor
@Getter
public enum AuditMallBillStatusEnum {

    CHECKING_ACCOUNTS(0, "对账中"),
    DECLINED(1, "已拒绝"),
    SUCCESSFUL_RECONCILIATION(2, "对账成功，待开票"),
    FINANCIAL_AUDIT(3, "财务审核中"),
    DONE(4, "已完成"),
    FINANCIAL_REJECTION(5, "财务拒绝"),
    FINANCIAL_RETURN(6, "财务退回"),

    ;
    @EnumValue
    private int code;
    private String description;

    public static List<AuditMallBillStatusEnum> financialAuditList() {
        List<AuditMallBillStatusEnum> list = Lists.newArrayList();
        list.add(DONE);
        list.add(FINANCIAL_REJECTION);
        list.add(FINANCIAL_RETURN);
        return list;
    }
}
